package com.punch.course.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punch.common.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author wjj
 * @since 2020-12-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("time_task")
public class TimeTask extends SuperEntity<TimeTask> {

    private static final long serialVersionUID = 1L;

    /**
     * 0-只执行一次 1-循环执行
     */
    @TableField("type")
    private Integer type;

    /**
     * 定时任务表达式
     */
    @TableField("time_cron")
    private String timeCron;

    /**
     * 关联的业务id
     */
    @TableField("associate_id")
    private Long associateId;

    /**
     * 0-班级开始报名 1-班级待开班 2-班级开班
     */
    @TableField("associate_type")
    private Integer associateType;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
